package com.rtos.model.cpu.registers;

import lombok.Data;

/**
 * @Author: biubiu0002
 * @Date: 2021-08-30 23:17
 * 指令寄存器
 * 饿汉式单例
 **/
@Data
public class IR extends AbstractRegister {
    private IR(){
        buffer=0;
    }
    private static IR ir = new IR();

    public static IR getInstance(){
        return ir;
    }

    public void plus(){
        ir.setBuffer(ir.getBuffer()+1);
    }
}
